package com.taobao.api.response;

import java.util.List;
import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.internal.mapping.ApiListField;
import com.taobao.api.TaobaoObject;

import com.taobao.api.TaobaoResponse;

/**
 * TOP API: tmall.nr.item.tag.ops response.
 * 
 * @author top auto create
 * @since 1.0, null
 */
public class TmallNrItemTagOpsResponse extends TaobaoResponse {

	private static final long serialVersionUID = 4575279164223934927L;

	/** 
	 * 返回结果
	 */
	@ApiField("result")
	private NewRetailResult result;


	public void setResult(NewRetailResult result) {
		this.result = result;
	}
	public NewRetailResult getResult( ) {
		return this.result;
	}
	
	/**
 * 请求结果
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class TagRespDto extends TaobaoObject {

	private static final long serialVersionUID = 8677257864926694768L;

	/**
		 * 失败描述
		 */
		@ApiListField("descs")
		@ApiField("string")
		private List<String> descs;
		/**
		 * 失败商品编码
		 */
		@ApiListField("fail_ids")
		@ApiField("number")
		private List<Long> failIds;
		/**
		 * 成功商品编码
		 */
		@ApiListField("success_ids")
		@ApiField("number")
		private List<Long> successIds;
	

	public List<String> getDescs() {
			return this.descs;
		}
		public void setDescs(List<String> descs) {
			this.descs = descs;
		}
		public List<Long> getFailIds() {
			return this.failIds;
		}
		public void setFailIds(List<Long> failIds) {
			this.failIds = failIds;
		}
		public List<Long> getSuccessIds() {
			return this.successIds;
		}
		public void setSuccessIds(List<Long> successIds) {
			this.successIds = successIds;
		}

}

	/**
 * 返回结果
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class NewRetailResult extends TaobaoObject {

	private static final long serialVersionUID = 7239651953655761688L;

	/**
		 * 错误编码
		 */
		@ApiField("error_code")
		private String errorCode;
		/**
		 * 错误信息
		 */
		@ApiField("error_message")
		private String errorMessage;
		/**
		 * 请求结果
		 */
		@ApiField("result_data")
		private TagRespDto resultData;
		/**
		 * 成功或者失败
		 */
		@ApiField("success_flag")
		private Boolean successFlag;
	

	public String getErrorCode() {
			return this.errorCode;
		}
		public void setErrorCode(String errorCode) {
			this.errorCode = errorCode;
		}
		public String getErrorMessage() {
			return this.errorMessage;
		}
		public void setErrorMessage(String errorMessage) {
			this.errorMessage = errorMessage;
		}
		public TagRespDto getResultData() {
			return this.resultData;
		}
		public void setResultData(TagRespDto resultData) {
			this.resultData = resultData;
		}
		public Boolean getSuccessFlag() {
			return this.successFlag;
		}
		public void setSuccessFlag(Boolean successFlag) {
			this.successFlag = successFlag;
		}

}



}
